//
//  AllButton.swift
//  ZYA
//
//  Created by 邱仙凯 on 2019/5/28.
//  Copyright © 2019 zwb. All rights reserved.
//

import UIKit

import UIKit

class AllButton: UIButton {
    
    override func awakeFromNib() {
        
    }
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.setTitleColor(#colorLiteral(red: 0.06274510175, green: 0, blue: 0.1921568662, alpha: 1), for: .normal)
        self.setTitle("选择信息", for: .normal)
        // 全选功能先隐藏
        // self.setTitle("全选", for: .normal)
//        self.setImage(UIImage(named:"selectButton"), for: .normal)
//        self.setImage(UIImage(named:"selectedButton"), for: .selected)
        self.isUserInteractionEnabled = false
        self.titleLabel?.textAlignment = .left
        self.titleLabel?.font = UIFont.systemFont(ofSize: 15)
       
      
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    override func layoutSubviews() {
        super.layoutSubviews()
         // 全选功能先隐藏
//        imageView!.frame = CGRect(x: 13 , y: (self.ks_height - 24)/2, width: 24, height: 24)
//        titleLabel!.frame = CGRect(x: 50 , y: 0, width: 280 , height: self.ks_height)
        // 设置title
            titleLabel!.frame = CGRect(x: 3 , y: 0, width: 280 , height: self.ks_height)
        
        
    }
    
}
